package com.yunhe.device.domain.device;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;

/**
 * 端子对象
 * @desc 端子对象定义
 * @author liuronglei
 */
@ApiModel(value = "Terminal", description = "端子对象")
@NodeEntity
public class Terminal {
    @ApiModelProperty(value = "id")
    @Id
    private Long id;
    @ApiModelProperty(value = "代码")
    @Property(name = "code")
    private Long code;
    @ApiModelProperty(value = "设备代码")
    @Property(name = "CONDUCTINGEQUIPMENT")
    private Long devCode;
    @ApiModelProperty(value = "连接节点代码")
    @Property(name = "CONNECTIVITYNODE")
    private Long connectivityNodeCode;
    @ApiModelProperty(value = "连接节点ID")
    @Property(name = "CONNECTIVITYNODEID")
    private Long connectivityNodeId;
    /*
    @ApiModelProperty(value = "连接节点")
    @Relationship(type = "HAS_CHILD", direction = "INCOMING")
    private ConnectivityNode connectivityNode;

    public ConnectivityNode getConnectivityNode() {
        return connectivityNode;
    }

    public void setConnectivityNode(ConnectivityNode connectivityNode) {
        this.connectivityNode = connectivityNode;
    }
    */

    public Long getConnectivityNodeId() {
        return connectivityNodeId;
    }

    public void setConnectivityNodeId(Long connectivityNodeId) {
        this.connectivityNodeId = connectivityNodeId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public Long getDevCode() {
        return devCode;
    }

    public void setDevCode(Long devCode) {
        this.devCode = devCode;
    }

    public Long getConnectivityNodeCode() {
        return connectivityNodeCode;
    }

    public void setConnectivityNodeCode(Long connectivityNodeCode) {
        this.connectivityNodeCode = connectivityNodeCode;
    }
}
